package com.example.blogapi.utils;

import com.example.blogapi.domain.MsSysUser;

public class UserThreadLocal {

    private UserThreadLocal(){}

    private static final ThreadLocal<MsSysUser> LOCAL = new ThreadLocal<>();

    public static void put(MsSysUser user){
        LOCAL.set(user);
    }
    public static MsSysUser get(){
        return LOCAL.get();
    }
    public static void remove(){
        LOCAL.remove();
    }
}
